<?php

namespace catchAdmin\model;

class UserNeed extends ModelApp
{

    protected $append = [
        'type_name',
    ];


    /**
     * @return string
     * type_name
     */
    public function getTypeNameAttr()
    {
        $list = [
            1 => '物资采购',
            2 => '工程承包',
            3 => '设计服务',
            4 => '监理服务',
            5 => '劳务需求',
            6 => '其他服务',
        ];

        return $list[$this->getOrigin('type')] ?? '';
    }
}
